package com.zxjbyte.yiyi.module.system.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.zxjbyte.yiyi.framework.mybatis.base.BasePO;
import com.zxjbyte.yiyi.framework.oss.storage.IOssConfig;
import lombok.Data;

/**
 * @Author zhangxingjia
 * @Date 2023/5/11 15:10
 * @Version: 1.0
 */
@Data
@TableName(value = "sys_oss_config", autoResultMap = true)
public class OssConfigPO extends BasePO {

    private static final long serialVersionUID = 5245156068043449499L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    // 配置名
    @TableField("name")
    private String name;

    // 存储器编号
    @TableField("storage_code")
    private String storageCode;

    // 是否为主配置
    @TableField("master")
    private Boolean master;

    // 存储器配置信息
    @TableField(value = "config", typeHandler = JacksonTypeHandler.class)
    private IOssConfig config;

}
